package com.hksj.Intelligentmanagement.controller;

import com.hksj.Intelligentmanagement.dto.NurseStationCallDTO;
import com.hksj.Intelligentmanagement.service.NurseStationCallService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName NurseStationCallController
 * @Description TODO
 * @Author @陈章
 * @Date 2023/10/26 10:15
 * @Version 1.0
 */
@Api(tags = "护士站转运病人呼叫")
@RestController
@RequestMapping("/api/NurseStationCall")
public class NurseStationCallController {

    @Autowired
    private NurseStationCallService nurseStationCallService;

    @ApiOperation(value = "启动转运病人呼叫")
    @PostMapping("/startNurseStationCall")
    public Void startNurseStationCall(@RequestBody NurseStationCallDTO nurseStationCallDTO) {
        return nurseStationCallService.startNurseStationCall(nurseStationCallDTO);
    }

}
